#include"stdio.h"
int main()
{
	int a;
	
	for (a = 1; a <= 100; a++)
	{
		if(a % 3 == 0)
		printf("%d\n", a);
	}
	return 0;
	int a, b, c;
	a = 0; 
	b = 0;
	c = 0;
	scanf_s("%d%d%d",a,b,c);
	if (a > b && b > c)
		printf("%d,%d,%d\n",a,b,c);
	else if(a > c && c > b)
		printf("%d,%d,%d\n", a, c, b);
	else if (b > a && a > c)
		printf("%d,%d,%d\n", b, a, c);
	else if (b > c && c > a)
		printf("%d,%d,%d\n", b, c, a);
	else if (c > b && b > a)
		printf("%d,%d,%d\n", c, b, a);
	else 
		printf("%d,%d,%d\n", c, a, b);
	return 0;

}